package com.gs.spring.core.aop;

import java.util.logging.Logger;

public class PropertyChangeTracker {
	private Logger logger = Logger.getLogger(getClass().getName());
	
	public PropertyChangeTracker() {
		System.out.println("Initializing the Advice class.");
	}
	
	public void trackChange(){
		logger.info("Property about to change");
	}
	public void trackChanged(){
		logger.info("Property changed");
	}
	
	public void trackChangeReturned(){
		logger.info("Control returned");
	}
	
	public void catchException(RuntimeException error){
		logger.info("Error da!");
	}
}
